Skip to content

Add README, Contribute button, and LiDAR shape/color detection panel#2

Merged
A1L13N merged 3 commits intomainfrom
copilot/add-readme-contribute-button
Mar 3, 2026
Merged

Add README, Contribute button, and LiDAR shape/color detection panel#2
A1L13N merged 3 commits intomainfrom
copilot/add-readme-contribute-button

Conversation

Copy link
Contributor

Copilot AI commented Feb 21, 2026

Adds a README, a Contribute button to both pages, and real-time LiDAR object detection reporting — showing the detected object's shape and color as the beam sweeps.

README

  • New README.md covering features, controls, component reference, LiDAR detection behavior, and a contributing guide.

Contribute Button

  • index.html: Added alongside "Enter System" in the hero section and as a footer link.
  • home.html: Added to the bottom of the Toolbox sidebar; opens the GitHub repo in a new tab.

LiDAR Detection Panel (home.html)

  • Blocks now carry a randomly assigned shape (square | circle | triangle), rendered accordingly in the canvas.

  • LiDAR beam range extended 70→100px.

  • getLidarDetection() casts the beam in world coordinates using shape-aware intersection per frame:

    • Square → segment-rect intersection
    • Circle → point-to-segment distance vs. radius
    • Triangle → edge-segment intersection against all 3 sides
  • New Detection Panel in the right sidebar updates in real time:

    State Display
    No LiDAR installed LiDAR not installed
    LiDAR active, beam clear No objects detected
    Beam intersects object ● OBJECT DETECTED / Shape / Color
  • getColorName() maps HSL hue to human-readable names (Red, Orange, Yellow, Green, Teal, Cyan, Blue, Purple, Magenta, Pink).

  • Detection state resets correctly on LiDAR add/remove and Reset All.

Screenshot

Playground with LiDAR detection panel


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: A1L13N <193832434+A1L13N@users.noreply.github.com>
Copilot AI changed the title [WIP] Add README and contribute button with detection feature Add README, Contribute button, and LiDAR shape/color detection panel Feb 21, 2026
Copilot AI requested a review from A1L13N February 21, 2026 22:32
@A1L13N A1L13N marked this pull request as ready for review March 3, 2026 05:49
@A1L13N A1L13N merged commit 84d7e7e into main Mar 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants